package com.block.db.mapper;

import com.block.db.entity.DataMatchOrderItem;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 商户匹配订单子项信息 Mapper 接口
 * </p>
 *
 * @author 
 * @since 2023-08-15
 */
public interface DataMatchOrderItemMapper extends BaseMapper<DataMatchOrderItem> {

    DataMatchOrderItem getEntityByItemOrderIdLock(String itemOrderId);

    DataMatchOrderItem getEntityByItemOrderIdAndInfoId(@Param("orderItemId") Long orderItemId, @Param("infoId") Integer infoId);

    List<DataMatchOrderItem> getEntityListByOrderNoExt(String orderNo);

    DataMatchOrderItem getLastedSuccessEntityByUid(@Param("uid") Long uid, @Param("dateInfo") String dateInfo);

    List<DataMatchOrderItem> getOrderSuccessList(@Param("uid")Long uid, @Param("dateInfo") String dateInfo);

    List<DataMatchOrderItem> getItemListByUidAndWaitPush(@Param("uid")Long uid);

    boolean updateDataMatchOrderItemStatus(@Param("item") DataMatchOrderItem dataMatchOrderItem);

    DataMatchOrderItem selectDataMatchOrderItemStatus(@Param("pushId") String pushId, @Param("infoId") String infoId);



}
